<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="lib/vue.js"></script>
</head>
<body>
  <div id="root">
    <div @click="fn3" style="background-color: red;width: 300px;height: 300px;">
      <div @click="fn2" style="background-color: green;width: 200px;height: 200px;">
        <div @click.stop="fn1" style="background-color: pink;width: 100px;height: 100px;"></div>
      </div>
    </div>
  </div>
</body>
<script>
  const vm = new Vue({
    el: "#root",
    methods:{
      fn1(){
        console.log(1)
      },
      fn2(){
        console.log(2)
      },
      fn3(){
        console.log(3)
      }
    }
  });
</script>
</html>